package com.sdp.refund.db.refund_apply.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-08-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("refund_apply")
public class RefundApply extends Model<RefundApply> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 户主姓名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 身份证号
     */
    @TableField("id_num")
    private String idNum;

    /**
     * 银行卡号
     */
    @TableField("bank_num")
    private String bankNum;

    /**
     * 开户行
     */
    @TableField("bank_ac")
    private String bankAc;

    /**
     * 联系电话
     */
    @TableField("user_tel")
    private String userTel;

    /**
     * 身份证正面照片
     */
    @TableField("id_card_front_photo")
    private String idCardFrontPhoto;

    /**
     * 身份证反面照片
     */
    @TableField("id_card_back_photo")
    private String idCardBackPhoto;

    /**
     * 银行卡照片
     */
    @TableField("bank_photo")
    private String bankPhoto;

    /**
     * 申请时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("apply_time")
    private LocalDateTime applyTime;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
